<?php
/**
 * Created by PhpStorm.
 * User: sunshine
 * Date: 2016/8/30
 * Time: 20:01
 */
require_once ('Admin/View/template/inc_admin.php');
?>

<div class="col-md-10  col-xs-12 col-sm-10 col-sm-offset-1 col-md-offset-1 col-xs-offset-1"  style="position: relative;top: 50px;"  >
    <h2 style="color: #03c2f9; margin-bottom: 0px;padding-bottom: 0px;"><p class="bg-white" style="margin-bottom: 10px;margin-top: 10px" >修改判断题信息</p></h2>
    <h4><p class="bg-info" style="margin-top:0px ;padding:10px" ><a href="admin.php" style="color: white">首页&nbsp;</a>/&nbsp;修改判断题信息</p></h4>
</div>
<div style="margin-top: 180px;margin-left: 250px;font-size: 20px;font-family: 微软雅黑"><p>修改判断题信息</p></div>

 <?php 
$row=$data['test'];
$id=$row['j_id'];
$pid=$row['pid'];
$content=$row['content'];
$score=$row['score'];
$ans=$row['ans'];

?>

        <div class="container-fluid col-sm-offset-1 col-md-10">
           <form  method=post action="admin.php?c=j_test&m=update" style="margin-top: 50px" enctype="multipart/form-data" class="form-horizontal" >
            <table class="table table-hover" style="width: 600px;margin-left: 20%;margin-top:50px; color: #0a0a0a;font-size: 20px;font-family: 微软雅黑">
              <caption>
                <h2 align="center"> <font color="gray">修改判断题信息</font>
                </h2>
              </caption>
              
 <tr style="padding-left: 50px;background-color: #eee;">
                <td width="20%">id</td>
                <td width="80%">
                  <?php echo $id;?>
                  <input type="hidden" name="id" value=<?php echo $id?>></td>
              </tr>
              
              <tr style="padding-left: 50px;background-color: #eee;">
                <td>试卷名：</td>
                <td>
                  <input type="text" name="pid" size=30 value=<?php echo $pid;?>></td>
              </tr>
              
              
              <tr style="padding-left: 50px;background-color: #eee;">
                <td>内容：</td>
                <td>
                  <input type="text" name="content" size=30 value=<?php echo $content;?>></td>
              </tr>
             
             
              <tr style="padding-left: 50px;background-color: #eee;">
                <td width=150>答案：</td>
                <td>
                  <textarea name="ans" cols="40" rows="5">
                    <?php echo $intro;?></textarea>
                </td>
              </tr>
               <tr style="padding-left: 50px;background-color: #eee;">
                <td>分值：</td>
                <td>
                  <input type="text" name="score" size=30 value=<?php echo $score;?>></td>
              </tr>
             
              <tr style="padding-left: 50px;background-color: #eee;">
                <td width=150>操作</td>
                <td>
                  <input type="submit" value="更新" class="btn btn-info">
                  <input type="reset" value="重置" class="btn btn-info"></td>
              </tr>
            </table>
                        </form>
          </div>
       

  